package com.sky.service;

import com.github.pagehelper.Page;
import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.entity.Employee;
import com.sky.result.Result;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    void addEmployee(Employee employeeDTO);

    Employee findEmployeeByUsername(Employee employee);

    Page<Employee> employPage(EmployeePageQueryDTO employeePageQueryDTO);

    void startEmployStatus(Integer status, Long id);

    Result updateEmployPassword(PasswordEditDTO passwordEditDTO);

    Result queryByEmployId(Long id);

    Result updateEmployId(EmployeeDTO employeeDTO);
}
